package com.atstudent.gmall.common.feign.product;


import com.atstudent.gmall.common.feign.product.fallback.BaseCategoryFeignClientFallback;
import com.atstudent.gmall.common.result.Result;
import com.atstudent.gmall.product.vo.CategoryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author 薛有朋
 * @CreatDate 2024/11/29 22:05
 **/
@FeignClient(value = "service-product" , fallback = BaseCategoryFeignClientFallback.class)
public interface BaseCategoryFeignClient {

    @GetMapping(value = "/api/inner/product/findAllCategoryTree")
    public abstract Result<List<CategoryVo>> findAllCategoryTree();
}
